<template>
  <div class="app">
    <h2>我是App组件</h2>
    <!-- 父给字传递了一个数据，名为abc，值为"哈哈" -->
    <Person :name="name" :age="age" :gender="gender"/>
  </div>
</template>

<script>
  import Person from './components/Person.vue'
  export default {
    name:'App',
    components:{Person},
    data() {
      return {
        name:'强哥',
        age:18,
        gender:'女'
      }
    },
  }
</script>

<style>
  .app {
    background-color: gray;
    padding: 20px;
    border-radius: 10px;
  }
</style>